<?php

include '../core/core.php';

CCore::Using('base.followers.logger');
CCore::Using('logger.inline');
CCore::Using('logger.file');
CCore::Using('net.pop3');
CCore::Using('base.datapointer');

$oPop3Config = new CCoreNetPop3Config('u-server', 110, 'test@localhost', 'p12345', 5, 5);
$oPop3 = new CCoreNetPop3($oPop3Config);

$oLogger1 = new CCoreLoggerInline("<br />\n", true);
$oLogger2 = new CCoreLoggerFile('c:/php.core.log.txt');
$oFollower1 = new CCoreBaseFollowersLogger($oLogger1);
$oFollower2 = new CCoreBaseFollowersLogger($oLogger2);

$oPop3->AddFollower($oFollower1);
// $oPop3->AddFollower($oFollower2);

// $oSocketStream = new CCoreNetSocketStreamsPop3Server('files.pop3server/');
// $oPop3->SetStream($oSocketStream);

if ($oPop3->ConnectAndLogin())
{
	$t = $s = 0;
	$oPop3->Stat($t, $s);
	var_dump($t);
	var_dump($s);
	var_dump($oPop3->Sizes());
	$oPop3->LogoutAndDisconnect();
}

